import { getlink } from "@/api/getlink";
export const home = {
  state: {
    src: [
      {
        id: "001",
        imgurl: "/bb/b1.png",
        list: "最近收听推荐 能找到这里也是你..."
      },
      {
        id: "002",
        imgurl: "/bb/b1.png",
        list: "最近收听推荐 能找到这里也是你..."
      },
      {
        id: "003",
        imgurl: "/bb/b1.png",
        list: "最近收听推荐 能找到这里也是你..."
      },
      {
        id: "004",
        imgurl: "/bb/b1.png",
        list: "最近收听推荐 能找到这里也是你..."
      },
    ]
  },
  mutations: {
    setState(state, payload) {
      state = payload;
    }
  },
  actions: {
    request(context) {
      getlink("/bb/fone").then(ok => {
        context.commit("setState", ok.data.data.blocks);
      });
    }
  }
};
